package com.qf.staff.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.staff.pojo.Emp;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface EmpMapper extends BaseMapper<Emp> {
    @Update("update yu_emp  set status = #{status}  where emp_id = #{empId} ")
    int updateByStatus(Emp emp);

    List<Emp> selectEmp();

    int updateByAllStatus(@Param("ids") List<Integer> ids, @Param("status") int status);

}